package at.fhhagenberg.se.tjr.protocol;

import java.io.Serializable;

public abstract class TrafficJamMessage implements Serializable, Message{

	
	private final long moteId;
	private int hopCount = 0;
	
	public TrafficJamMessage(long moteId){
		this.moteId = moteId;
	}
	
	public void increaseHopCount(){
		hopCount++;
	}

	public long getMoteId() {
		return moteId;
	}

	public int getHopCount() {
		return hopCount;
	}

	public void setHopCount(int hopCount) {
		this.hopCount = hopCount;
	}
	
}
